﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TGIApp.Data.Specification;
using TGIApp.Model;

namespace TGIApp.Business
{
    public static class Specifications
    {
        public static ISpecification<User> AdministratorSpecification
        {
            get
            {
                return new Specification<User>(user => user.UserType == (short)UserType.Administrator);
            }

        }
        public static ISpecification<User> ClientSpecification
        {
            get
            {
                return new Specification<User>(user => user.UserType == (short)UserType.Client);
            }

        }
        public static ISpecification<User> AgentSpecification
        {
            get
            {
                return new Specification<User>(user => user.UserType == (short)UserType.Agent);
            }

        }
        public static ISpecification<User> CustomerSpecification
        {
            get
            {
                return new Specification<User>(user => user.UserType == (short)UserType.Customer);
            }

        }
    }
}